package com.duo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.duo.entity.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @Author: Xrx
 * @Description:
 * @CreateTime: 2023/7/10 15:17
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    @Select("select count(id) from sky_take_out.user where create_time < #{end} and create_time > #{begin}")
    Integer countNewByMap(Map<String, Object> map);

    @Select("select count(id) from sky_take_out.user where create_time < #{end}")
    Integer countTotalByMap(Map<String, Object> map);

}
